/*
package cn.iocoder.mall.admin.application.controller.admins;

import cn.iocoder.common.utils.common.api.vo.Result;
import cn.iocoder.mall.admin.api.AdminService;
import cn.iocoder.mall.admin.api.DeptmentService;
import cn.iocoder.mall.admin.api.ResourceService;
import cn.iocoder.mall.admin.api.RoleService;
import cn.iocoder.mall.admin.api.bo.admin.AdminAuthenticationBO;
import cn.iocoder.mall.admin.api.dto.admin.AdminAuthenticationDTO;
import cn.iocoder.mall.admin.application.vo.admin.SysLoginVO;
import io.swagger.annotations.Api;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("管理员模块")
public class AdminController {

    @Reference(validation = "true", version = "${dubbo.provider.ResourceService.version}")
    private ResourceService resourceService;

    @Autowired
    private AdminService adminService;

    @Reference(validation = "true", version = "${dubbo.provider.RoleService.version}")
    private RoleService roleService;

    @Autowired
    private DeptmentService deptmentService;

    @PostMapping("/loginByPassword")
    public Result loginByPassword(@RequestBody SysLoginVO vo){

         AdminAuthenticationBO bo=adminService.authentication(new AdminAuthenticationDTO().setPassword(vo.getPassword()).setUsername(vo.getUsername()));
         return Result.ok(bo);
    }


}
*/
